message(STATUS "Enter CommonUtils folder")


FIND_PACKAGE(Qt5Core)
FIND_PACKAGE(Qt5Network)

set(MODULE_COMMONUTILS CommonUtils)
# add_definitions(-DCOMMONUTILS_LIBRARY)

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -utf-8")

set(CMAKE_CXX_STANDARD 17)

SET(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib")


# include_directories(${CMAKE_SOURCE_DIR}/ThirdParty/geographiclib)
include_directories(${CMAKE_SOURCE_DIR}/ThirdParty/spdlog)
# include_directories(${CMAKE_SOURCE_DIR}/EAuthentication)


LINK_DIRECTORIES(${PROJECT_BINARY_DIR}/lib)						
set(LIBS    spdlog) 

aux_source_directory(. DIR_LIB_SRCS)
aux_source_directory(./shipAlgorithm/ SRC1) 
# aux_source_directory(./clipper/ SRC2)
add_library (${MODULE_COMMONUTILS} STATIC ${DIR_LIB_SRCS} ${SRC1})
target_link_libraries (${MODULE_COMMONUTILS} PRIVATE  Qt5::Core Qt5::Network ${LIBS})




